﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
    [DataContract, Table("IcmDisposeOfficeSupplylotHistory")]
    public class DisposeOfficeSupplylotHistory
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DataMember, Display(Name = "DisposeOfficeSupplylotHisId", ResourceType = typeof(Resources.DisposeOfficeSupplylotHistoryResource))]
        public int DisposeOfficeSupplylotHisId { get; set; }

        [ForeignKey("OfficeSuppliesLot")]
        [DataMember, Display(Name = "OfficeSuppliesLotId", ResourceType = typeof(Resources.DisposeOfficeSupplylotHistoryResource))]
        public int OfficeSuppliesLotId { get; set; }

        [ForeignKey("Dispose")]
        [DataMember, Display(Name = "DisposeId", ResourceType = typeof(Resources.DisposeOfficeSupplylotHistoryResource))]
        public int DisposeId { get; set; }

        [DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.DisposeOfficeSupplylotHistoryResource))]
        public string RecordStatus { get; set; }

        [DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.DisposeOfficeSupplylotHistoryResource))]
        public int? CreatedBy { get; set; }

        [DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.DisposeOfficeSupplylotHistoryResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

        [DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.DisposeOfficeSupplylotHistoryResource))]
        public int? UpdatedBy { get; set; }

        [DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.DisposeOfficeSupplylotHistoryResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }


        [DataMember]
        public virtual Dispose Dispose { get; set; }

        [DataMember]
        public virtual OfficeSuppliesLot OfficeSuppliesLot { get; set; }
    }
}
